package com.wcs.exam.controller.admin.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * Admin-用户信息-编辑请求参数
 * </p>
 *
 * @author wcs
 * @since 2025-03-13
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-用户信息-编辑请求参数")
public class AdminUsersEditReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键不能为空")
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Size(max = 20, message = "用户名不能超过20个字符")
    @NotBlank(message = "昵称不能为空")
    @Schema(description = "昵称(内容限制：1~20)", requiredMode = Schema.RequiredMode.REQUIRED)
    private String nickname;

    @NotNull(message = "性别不能为空")
    @Schema(description = "用户性别(1男，2女，3保密)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer userSex;

    @Schema(description = "出生时间")
    private LocalDate userAge;

    @NotBlank(message = "用户头像不能为空")
    @Schema(description = "用户头像", requiredMode = Schema.RequiredMode.REQUIRED)
    private String userHead;

    @Size(max = 200, message = "备注不能超过200个字符")
    @Schema(description = "备注(内容限制：<=200)")
    private String remark;

    @Schema(description = "标签ID集合")
    private List<Long> tagIds;
}
